var express = require("express");
var router = express.Router();
var pomelo = require("pomelo");


//get all niuniu tables info
router.get("/niuniu", function(req, res) {
    var msg = req.query;
    pomelo.app.rpc.niuniu.gameRemote.getNiuniuTables(null, msg, function(data) {
        res.set({
            'content-type': 'application/json; charset=utf-8'
        }).send(JSON.stringify(data));
    });
});


//get all zhajinhua tables info
router.get("/zhajinhua", function(req, res) {
    var msg = req.query;
    pomelo.app.rpc.zhajinhua.gameRemote.getZhajinhuaTables(null, msg, function(data) {
        res.set({
            'content-type': 'application/json; charset=utf-8'
        }).send(JSON.stringify(data));
    });
});




module.exports = router;